import Mock from 'mockjs';
// 示范

Mock.mock('/api/list', 'get', {
    "list|20": [
        {
            "id": "@id",
            "name": "@cword(8,11)",
            "title": "@ctitle(2,6)",
            "img": "@image(140x90,@color)",
            "price|10-1000": 1,
            "like|1": [true, false],
            "flag|1": [false, true],
            "num": 1,
            'desc|1': ['43平/2室 1厅/', '100平/2室 1厅 1厨/', '120平/3室 2厅 1厨/'],
            'type|1': ['小区', '别墅', '高层'],
            'averagePrice|7000-20000': 1,
        }
    ],
})


Mock.mock('/api/tablist', 'get', {
    "tablist|20": [
        {
            "id": "@id",
            "title": "@ctitle(2,3)",
            "children|20": [
                {
                    "id": "@id",
                    "name": "@cname(2,3)",
                    "title": "@ctitle(2,6)",
                    "img": "@image(150x80,@color)",
                    "price|10-1000": 1,
                    "like|1": [true, false],
                    "flag|1": [false, true],
                    "num": 1
                }
            ]
        }
    ],
})


Mock.mock('/api/house_list', 'get', {
    "house_list|40": [
        {
            id: '@id',
            title: '@ctitle(10)',
            'price|10-120.2': 1,
            image: '@image(150x80,@color)',
            info: '@cword(8)',
            'banner|8': ['@image(375x200,@color)'],
            'city|1': ['朝阳', '海淀', '昌平', '丰台'],
            'type|1': ['新房', '二手房'],
            'houseType|1': ['1室', '2室', '3室', '3室+'],
            'isSelect|1': [true, false],
            'orientation|1': ['东', '南', '西', '北']
        }
    ],
})


Mock.mock('/api/rant_out_house_list', 'get', {
    "rant_out_house_list|40": [
        {
            id: '@id',
            title: '@ctitle(10)',
            'price|50-150.2': 1,
            image: '@image(150x80,@color)',
            info: '@cword(8)',
            'banner|8': ['@image(375x200,@color)'],
            'city|1': ['朝阳', '海淀', '昌平', '丰台'],
            'type|1': ['整租', '合租'],
            'houseType|1': ['1室', '2室', '3室', '3室+'],
            'isSelect|1': [true, false],
            'orientation|1': ['东', '南', '西', '北']
        }
    ]
})




